<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php $this->pageTitle="错误日志"; ?>
<div class="icon32" id="icon-users"><br>
</div>
<?php $arr = Yii::app()->params['helpDocument'];?>
<h2>API 错误日志<a target="<?php echo $arr['target']?>" href="<?php echo $arr['errorLog']?>"><?php echo $arr['img']?></a>
</h2>
<?php
$page = Yii::app()->request->getParam("page",1);
$message = Yii::app()->request->getParam("message");
if(isset($message) && $message!=''){
	echo("<div id='message' class='updated'><p>".$message."。</p></div>");
}
?>
<ul class="subsubsub">
	<li class="all"><a href="#">全部 <span class="count">(<?php echo($count);?>)</span></a>|
	</li>
	<li class="all"><a href="<?php echo(Yii::app()->createUrl("adminApi/errorLogClean"));?>">清空日志</a>|
	</li>
	<li class="all"><a href="<?php echo(Yii::app()->createUrl("adminApi/exportErrorLog&page=".$page));?>">导出Excel并下载</a>
	</li>
</ul>
<?php
$form=$this->beginWidget('CActiveForm', array());
$provider = $model->getDataProvider();
$count = count($provider->getData());
?>
<?php if($count>0){?>
<div class="tablenav top">
 
<?php $this->widget('CMiniyunGridView', array(
	'id'           => 'user-grid',
	'dataProvider' => $provider,
	'model'        => new ApiErrorLogBase(),
	'view'         => 'miniyunGridView',
)); }?>

<?php $this->endWidget(); ?></div>
